<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SmartCarInformationSystem: include/StudentController.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SmartCarInformationSystem
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('StudentController_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">StudentController.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="StudentController_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef __STUCON__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define __STUCON__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;unordered_map&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Const_8h.html">Const.h</a>&quot;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="MapFunc_8h.html">MapFunc.h</a>&quot;</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="IdManager_8h.html">IdManager.h</a>&quot;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Student_8h.html">Student.h</a>&quot;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160; </div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="classStudentController.html">   16</a></span>&#160;<span class="keyword">class </span><a class="code" href="classStudentController.html">StudentController</a> {</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        <span class="comment">// 学生表</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="classStudentController.html#a391674ebae9d6c9b9985b4a929d26f37">   19</a></span>&#160;        std::unordered_map&lt;std::string,Student*&gt; <a class="code" href="classStudentController.html#a391674ebae9d6c9b9985b4a929d26f37">studentMap</a>;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;        <a class="code" href="classStudentController.html#ae6cd2181275c3f6b077844fe195b6071">StudentController</a>();</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <a class="code" href="classStudentController.html#aa9348a3b71dfa1395d795e61c25953ab">~StudentController</a>();</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        <a class="code" href="classStudent.html">Student</a>* <a class="code" href="classStudentController.html#ae66baa931cc79d58e4b1712fd9280fe2">createStudent</a>(std::string name);</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        <a class="code" href="classStudent.html">Student</a>* <a class="code" href="classStudentController.html#ae66baa931cc79d58e4b1712fd9280fe2">createStudent</a>(std::string <span class="keywordtype">id</span>,std::string name);</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        <span class="keywordtype">int</span> <a class="code" href="classStudentController.html#a69543e2b17420362eb6178fa53d1d552">getStudentCount</a>();</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;        <a class="code" href="classStudent.html">Student</a>* <a class="code" href="classStudentController.html#a34203d2b749936b750ebbaad63dfb012">findStudentById</a>(std::string <span class="keywordtype">id</span>);</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classStudentController.html#af9e50272986d5a33599ac34583fc4c80">listAllStudent</a>(<a class="code" href="classStudent.html">Student</a>* (&amp;studentList)[]);</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classStudentController.html#a7552eb93cf7a9029a229d0bbcd34b744">deleteStudent</a>(<a class="code" href="classStudent.html">Student</a>* stu);</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;        <a class="code" href="classStudent.html">Student</a>* <a class="code" href="classStudentController.html#a2f701f2d08931bb6c63c96f1b8c2d80f">strToStudent</a>(std::istringstream &amp;iss);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;};</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aConst_8h_html"><div class="ttname"><a href="Const_8h.html">Const.h</a></div></div>
<div class="ttc" id="aIdManager_8h_html"><div class="ttname"><a href="IdManager_8h.html">IdManager.h</a></div></div>
<div class="ttc" id="aMapFunc_8h_html"><div class="ttname"><a href="MapFunc_8h.html">MapFunc.h</a></div></div>
<div class="ttc" id="aStudent_8h_html"><div class="ttname"><a href="Student_8h.html">Student.h</a></div></div>
<div class="ttc" id="aclassStudentController_html"><div class="ttname"><a href="classStudentController.html">StudentController</a></div><div class="ttdef"><b>Definition:</b> StudentController.h:16</div></div>
<div class="ttc" id="aclassStudentController_html_a2f701f2d08931bb6c63c96f1b8c2d80f"><div class="ttname"><a href="classStudentController.html#a2f701f2d08931bb6c63c96f1b8c2d80f">StudentController::strToStudent</a></div><div class="ttdeci">Student * strToStudent(std::istringstream &amp;iss)</div><div class="ttdef"><b>Definition:</b> StudentController.cpp:72</div></div>
<div class="ttc" id="aclassStudentController_html_a34203d2b749936b750ebbaad63dfb012"><div class="ttname"><a href="classStudentController.html#a34203d2b749936b750ebbaad63dfb012">StudentController::findStudentById</a></div><div class="ttdeci">Student * findStudentById(std::string id)</div><div class="ttdef"><b>Definition:</b> StudentController.cpp:45</div></div>
<div class="ttc" id="aclassStudentController_html_a391674ebae9d6c9b9985b4a929d26f37"><div class="ttname"><a href="classStudentController.html#a391674ebae9d6c9b9985b4a929d26f37">StudentController::studentMap</a></div><div class="ttdeci">std::unordered_map&lt; std::string, Student * &gt; studentMap</div><div class="ttdef"><b>Definition:</b> StudentController.h:19</div></div>
<div class="ttc" id="aclassStudentController_html_a69543e2b17420362eb6178fa53d1d552"><div class="ttname"><a href="classStudentController.html#a69543e2b17420362eb6178fa53d1d552">StudentController::getStudentCount</a></div><div class="ttdeci">int getStudentCount()</div><div class="ttdef"><b>Definition:</b> StudentController.cpp:39</div></div>
<div class="ttc" id="aclassStudentController_html_a7552eb93cf7a9029a229d0bbcd34b744"><div class="ttname"><a href="classStudentController.html#a7552eb93cf7a9029a229d0bbcd34b744">StudentController::deleteStudent</a></div><div class="ttdeci">void deleteStudent(Student *stu)</div><div class="ttdef"><b>Definition:</b> StudentController.cpp:64</div></div>
<div class="ttc" id="aclassStudentController_html_aa9348a3b71dfa1395d795e61c25953ab"><div class="ttname"><a href="classStudentController.html#aa9348a3b71dfa1395d795e61c25953ab">StudentController::~StudentController</a></div><div class="ttdeci">~StudentController()</div><div class="ttdef"><b>Definition:</b> StudentController.cpp:10</div></div>
<div class="ttc" id="aclassStudentController_html_ae66baa931cc79d58e4b1712fd9280fe2"><div class="ttname"><a href="classStudentController.html#ae66baa931cc79d58e4b1712fd9280fe2">StudentController::createStudent</a></div><div class="ttdeci">Student * createStudent(std::string name)</div><div class="ttdef"><b>Definition:</b> StudentController.cpp:17</div></div>
<div class="ttc" id="aclassStudentController_html_ae6cd2181275c3f6b077844fe195b6071"><div class="ttname"><a href="classStudentController.html#ae6cd2181275c3f6b077844fe195b6071">StudentController::StudentController</a></div><div class="ttdeci">StudentController()</div><div class="ttdef"><b>Definition:</b> StudentController.cpp:6</div></div>
<div class="ttc" id="aclassStudentController_html_af9e50272986d5a33599ac34583fc4c80"><div class="ttname"><a href="classStudentController.html#af9e50272986d5a33599ac34583fc4c80">StudentController::listAllStudent</a></div><div class="ttdeci">void listAllStudent(Student *(&amp;studentList)[])</div><div class="ttdef"><b>Definition:</b> StudentController.cpp:52</div></div>
<div class="ttc" id="aclassStudent_html"><div class="ttname"><a href="classStudent.html">Student</a></div><div class="ttdef"><b>Definition:</b> Student.h:9</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="StudentController_8h.html">StudentController.h</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
